package com.baboba.rummy.web.client.card;

import java.util.LinkedList;
import java.util.List;

import com.baboba.rummy.cards.Card;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HorizontalPanel;

public class IceBreakView extends Composite {
	private HorizontalPanel topContainer;
	
	public IceBreakView(){
		topContainer = new HorizontalPanel();
		topContainer.setSpacing(10);
		this.initWidget(topContainer);
	}
	
	public void showIceBreak(List<LinkedList<Card>> cards){
		topContainer.clear();
		
		for (LinkedList<Card> cardList:cards)
			topContainer.add(new CardListView(cardList));
	}
}
